<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>JavaScript 变量</title>
</head>
<body>

<p id="demo1"></p>
<p id="demo2"></p>

<script>
  var x = "3"+ 5 + 8;
  document.getElementById("demo1").innerHTML ="相加 '3' + 5 + 8 的结果："+ x;
  var y = 3 + 5 + "8";
  document.getElementById("demo2").innerHTML ="相加 3 + 5 + '8' 的结果："+  y;
</script>


</body>
</html>